package per.com.service.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import per.com.bean.UserOrder;
import per.com.dao.PcUserOrderDao;
import per.com.service.PcUserOrderService;

import java.util.List;

/**
 * @Author: plx
 * @Date: 2019/5/21 14:26
 * @Version 1.0
 */
@Service("PcUserOrderServiceId")
public class PcUserOrderServiceImpl implements PcUserOrderService {
    @Autowired
    @Qualifier("PcUserOrderDaoId")
    private PcUserOrderDao pcUserOrderDao;

    @Override
    public void insertIntoOrderUser(UserOrder userOrder) {
        pcUserOrderDao.insertIntoOrderUser(userOrder);
    }

    @Override
    public List<UserOrder> getAllMyOrder(String userId) {
        return pcUserOrderDao.getAllMyOrder(userId);
    }

    @Override
    public List<UserOrder> getOrderUserByOrderId(String orderId) {
        return pcUserOrderDao.getOrderUserByOrderId(orderId);
    }
}
